package com.drawu.drawuspring.service;

import com.drawu.drawuspring.domain.DTO.LikesBehaviorDto;
import com.drawu.drawuspring.domain.po.LikedRecord;
import com.baomidou.mybatisplus.extension.service.IService;

import java.util.List;
import java.util.Set;

/**
 * <p>
 * 点赞记录表 服务类
 * </p>
 *
 * @author hui
 * @since 2024-10-12
 */
public interface ILikedRecordService extends IService<LikedRecord> {

    /**
     * 保存点赞记录
     */
    void saveRecord(LikesBehaviorDto dto);

    /**
     * 删除点赞记录
     * @param dto
     */
    void deleteRecord(LikesBehaviorDto dto);


    /**
     * 获取用户点赞过的记录
     * @param postIds
     */
    Set<Integer> getLikedRecordList(List<Integer> postIds);
}
